import multiprocessing
import time


def task(name: str):
    print(f"{name} step1\n", end="")
    print(f"{name} step2\n", end="")

    # time.sleep(100)
    return f"complete"


def start_process():
    p = multiprocessing.Process(target=task, args=["A"])
    p.start()
    p.join()


def start_process2():
    p_list = [multiprocessing.Process(target=task, args=[x]) for x in "abcde"]
    for p in p_list:
        p.start()

    for p in p_list:
        p.join()


if __name__ == '__main__':
    start_process2()

